package week03;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.TreeSet;

public class T029 {
	public static void main(String[] args) {
		TreeSet<BigDecimal> treeSet = new TreeSet<>();
		for(int i=2;i<=100;i++) {
			for(int j=2;j<=100;j++) {
				treeSet.add(BigDecimal.valueOf(Math.pow(i, j)));
			}
		}
		System.out.println(treeSet.size());
	}
}
